package com.xxl.job.configuration;

import com.xxl.job.xxljob.TokenManager;
import com.xxl.job.xxljob.XxlJobProperties;
import com.xxl.job.xxljob.XxlJobRegisterConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Tang
 * @classname XxlJobAutoConfiguration
 * @description [  ]
 * @date 2023/4/5 22:25
 */
@Configuration
@EnableConfigurationProperties(value = {XxlJobProperties.class})
public class XxlJobAutoConfiguration {

    @Bean
    public TokenManager tokenManager() {
        return new TokenManager();
    }

    @Bean
    public XxlJobRegisterConfiguration xxlJobRegisterConfiguration() {
        return new XxlJobRegisterConfiguration();
    }

}
